const express = require('express')
const router = express.Router()

const getAllUsers = (req, res) => {
  res.status(500).json({
    status: 'fail',
    message: 'route is yet defined',
  })
}
const getUser = (req, res) => {
  res.status(500).json({
    status: 'fail',
    message: 'route is yet defined',
  })
}
const createUser = (req, res) => {
  res.status(500).json({
    status: 'fail',
    message: 'route is yet defined',
  })
}
const updateUser = (req, res) => {
  res.status(500).json({
    status: 'fail',
    message: 'route is yet defined',
  })
}
const deleteUser = (req, res) => {
  res.status(500).json({
    status: 'fail',
    message: 'route is yet defined',
  })
}

router.route('/').get(getAllUsers).post(createUser)
router
  .route('/:id')
  .get(getUser)
  .patch(updateUser)
  .delete(deleteUser)

module.exports = router
